﻿CREATE PROCEDURE [dbo].[proc_Finance_RunningAccount_UpdateOrderBack]
	(
		@OId uniqueidentifier
	)
AS
Begin
	Update [Order] Set StateId=1 Where OId=@OId
	Update Finance_RunningAccount Set OrderId=NULL,Renling=1 Where OrderId=@OId
End
	RETURN
